package com.gxc.controller;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * @author 宫新程
 * @since 2019/3/11 10:45
 */
public class xxxxx {
  public static void main(String[] args) throws Exception {
    File file = new File("C:\\Users\\Administrator\\Desktop\\xxx.txt");
    BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(file)));
    String line;
    StringBuilder sb = new StringBuilder();
    while ((line = br.readLine()) != null) {
      sb.append(line);
    }
    System.out.println(sb.toString());
    System.out.println(
        "{  \"template\": \"PROMO\",  \"epd_type\": \"58_1\",  \"block_num\": 15,  \"encoding\": \"UTF-8\",  \"direction\": \"0\",  \"screen_block\": [    {      \"start_x\": 0,      \"start_y\": 0,      \"end_x\": 399,      \"end_y\": 40,      \"font_type\": \"Zfull-GB Bold 28\",      \"font_size\": 28.0,      \"content_type\": \"CONTENT_TYPE_TEXT\",      \"content_title\": \"NONE\",      \"content_value\": \"Haier\",      \"content_color\": \"BLACK\",      \"content_alignment\": \"LEFT\",      \"number_script\": \"NONE\",      \"number_gap\": \"CONSECUTIVE\",      \"font_type_script\": \"Arial\",      \"font_size_script\": 16.0,      \"content_reverse\": \"TRUE\",      \"origin_font_type\": 0,      \"human_readable\": \"NONE\",      \"human_readable_font_type\": \"Arial Regular 10\",      \"rotate\": null,      \"bar_height\": null,      \"text_decoration\": null,      \"text_decoration_script\": null,      \"format\": null,      \"separator\": null,      \"timezone\": null,      \"content_vertical_alignment\": null    },    {      \"start_x\": 0,      \"start_y\": 40,      \"end_x\": 395,      \"end_y\": 70,      \"font_type\": \"Zfull-GB Bold 22\",      \"font_size\": 22.0,      \"content_type\": \"CONTENT_TYPE_TEXT\",      \"content_title\": \"itemName\",      \"content_value\": \"海尔冰箱BCD-406WDGX6WDG\",      \"content_color\": \"BLACK\",      \"content_alignment\": \"LEFT\",      \"number_script\": \"NONE\",      \"number_gap\": \"CONSECUTIVE\",      \"font_type_script\": \"Arial\",      \"font_size_script\": 16.0,      \"content_reverse\": \"FALSE\",      \"origin_font_type\": 0,      \"human_readable\": \"NONE\",      \"human_readable_font_type\": \"Arial Regular 10\",      \"rotate\": null,      \"bar_height\": null,      \"text_decoration\": null,      \"text_decoration_script\": null,      \"format\": null,      \"separator\": null,      \"timezone\": null,      \"content_vertical_alignment\": null    },    {      \"start_x\": 0,      \"start_y\": 71,      \"end_x\": 395,      \"end_y\": 101,      \"font_type\": \"Zfull-GB Regular 18\",      \"font_size\": 18.0,      \"content_type\": \"CONTENT_TYPE_TEXT\",      \"content_title\": \"itemFeature\",      \"content_value\": \"滚筒洗衣机，洗衣机互联工厂\",      \"content_color\": \"BLACK\",      \"content_alignment\": \"LEFT\",      \"number_script\": \"NONE\",      \"number_gap\": \"CONSECUTIVE\",      \"font_type_script\": \"Arial\",      \"font_size_script\": 16.0,      \"content_reverse\": \"FALSE\",      \"origin_font_type\": 0,      \"human_readable\": \"NONE\",      \"human_readable_font_type\": \"Arial Regular 10\",      \"rotate\": null,      \"bar_height\": null,      \"text_decoration\": null,      \"text_decoration_script\": null,      \"format\": null,      \"separator\": null,      \"timezone\": null,      \"content_vertical_alignment\": null    },    {      \"start_x\": 0,      \"start_y\": 104,      \"end_x\": 399,      \"end_y\": 106,      \"font_type\": \"Arial\",      \"font_size\": 16.0,      \"content_type\": \"CONTENT_TYPE_LINE\",      \"content_title\": \"NONE\",      \"content_value\": \"NONE\",      \"content_color\": \"BLACK\",      \"content_alignment\": \"LEFT\",      \"number_script\": \"NONE\",      \"number_gap\": \"CONSECUTIVE\",      \"font_type_script\": \"Arial\",      \"font_size_script\": 16.0,      \"content_reverse\": \"FALSE\",      \"origin_font_type\": 0,      \"human_readable\": \"NONE\",      \"human_readable_font_type\": \"Arial Regular 10\",      \"rotate\": \"0\",      \"bar_height\": null,      \"text_decoration\": null,      \"text_decoration_script\": null,      \"format\": null,      \"separator\": null,      \"timezone\": null,      \"content_vertical_alignment\": null    },    {      \"start_x\": 135,      \"start_y\": 216,      \"end_x\": 399,      \"end_y\": 218,      \"font_type\": \"Arial\",      \"font_size\": 16.0,      \"content_type\": \"CONTENT_TYPE_LINE\",      \"content_title\": \"NONE\",      \"content_value\": \"NONE\",      \"content_color\": \"BLACK\",      \"content_alignment\": \"LEFT\",      \"number_script\": \"NONE\",      \"number_gap\": \"CONSECUTIVE\",      \"font_type_script\": \"Arial\",      \"font_size_script\": 16.0,      \"content_reverse\": \"FALSE\",      \"origin_font_type\": 0,      \"human_readable\": \"NONE\",      \"human_readable_font_type\": \"Arial Regular 10\",      \"rotate\": \"0\",      \"bar_height\": null,      \"text_decoration\": null,      \"text_decoration_script\": null,      \"format\": null,      \"separator\": null,      \"timezone\": null,      \"content_vertical_alignment\": null    },    {      \"start_x\": 337,      \"start_y\": 240,      \"end_x\": 396,      \"end_y\": 264,      \"font_type\": \"Zfull-GB Regular 16\",      \"font_size\": 16.0,      \"content_type\": \"CONTENT_TYPE_TEXT\",      \"content_title\": \"NONE\",      \"content_value\": \"元/台\",      \"content_color\": \"BLACK\",      \"content_alignment\": \"LEFT\",      \"number_script\": \"NONE\",      \"number_gap\": \"CONSECUTIVE\",      \"font_type_script\": \"Arial\",      \"font_size_script\": 16.0,      \"content_reverse\": \"FALSE\",      \"origin_font_type\": 0,      \"human_readable\": \"NONE\",      \"human_readable_font_type\": \"Arial Regular 10\",      \"rotate\": null,      \"bar_height\": null,      \"text_decoration\": null,      \"text_decoration_script\": null,      \"format\": null,      \"separator\": null,      \"timezone\": null,      \"content_vertical_alignment\": null    },    {      \"start_x\": 162,      \"start_y\": 269,      \"end_x\": 243,      \"end_y\": 296,      \"font_type\": \"Zfull-GB Regular 16\",      \"font_size\": 16.0,      \"content_type\": \"CONTENT_TYPE_TEXT\",      \"content_title\": \"NONE\",      \"content_value\": \"零售价:\",      \"content_color\": \"BLACK\",      \"content_alignment\": \"LEFT\",      \"number_script\": \"NONE\",      \"number_gap\": \"CONSECUTIVE\",      \"font_type_script\": \"Arial\",      \"font_size_script\": 16.0,      \"content_reverse\": \"FALSE\",      \"origin_font_type\": 0,      \"human_readable\": \"NONE\",      \"human_readable_font_type\": \"Arial Regular 10\",      \"rotate\": null,      \"bar_height\": null,      \"text_decoration\": null,      \"text_decoration_script\": null,      \"format\": null,      \"separator\": null,      \"timezone\": null,      \"content_vertical_alignment\": null    },    {      \"start_x\": 242,      \"start_y\": 265,      \"end_x\": 320,      \"end_y\": 294,      \"font_type\": \"Zfull-GB Regular 22\",      \"font_size\": 22.0,      \"content_type\": \"CONTENT_TYPE_TEXT\",      \"content_title\": \"tvCrossedPrice\",      \"content_value\": \"25999\",      \"content_color\": \"BLACK\",      \"content_alignment\": \"RIGHT\",      \"number_script\": \"NONE\",      \"number_gap\": \"CONSECUTIVE\",      \"font_type_script\": \"Arial\",      \"font_size_script\": 16.0,      \"content_reverse\": \"FALSE\",      \"origin_font_type\": 0,      \"human_readable\": \"NONE\",      \"human_readable_font_type\": \"Arial Regular 10\",      \"rotate\": null,      \"bar_height\": null,      \"text_decoration\": null,      \"text_decoration_script\": null,      \"format\": null,      \"separator\": null,      \"timezone\": null,      \"content_vertical_alignment\": null    },    {      \"start_x\": 320,      \"start_y\": 270,      \"end_x\": 390,      \"end_y\": 299,      \"font_type\": \"Zfull-GB Regular 16\",      \"font_size\": 16.0,      \"content_type\": \"CONTENT_TYPE_TEXT\",      \"content_title\": \"NONE\",      \"content_value\": \"元/台\",      \"content_color\": \"BLACK\",      \"content_alignment\": \"LEFT\",      \"number_script\": \"NONE\",      \"number_gap\": \"CONSECUTIVE\",      \"font_type_script\": \"Arial\",      \"font_size_script\": 16.0,      \"content_reverse\": \"FALSE\",      \"origin_font_type\": 0,      \"human_readable\": \"NONE\",      \"human_readable_font_type\": \"Arial Regular 10\",      \"rotate\": null,      \"bar_height\": null,      \"text_decoration\": null,      \"text_decoration_script\": null,      \"format\": null,      \"separator\": null,      \"timezone\": null,      \"content_vertical_alignment\": null    },    {      \"start_x\": 149,      \"start_y\": 279,      \"end_x\": 399,      \"end_y\": 281,      \"font_type\": \"Arial\",      \"font_size\": 16.0,      \"content_type\": \"CONTENT_TYPE_LINE\",      \"content_title\": \"NONE\",      \"content_value\": \"NONE\",      \"content_color\": \"BLACK\",      \"content_alignment\": \"LEFT\",      \"number_script\": \"NONE\",      \"number_gap\": \"CONSECUTIVE\",      \"font_type_script\": \"Arial\",      \"font_size_script\": 16.0,      \"content_reverse\": \"FALSE\",      \"origin_font_type\": 0,      \"human_readable\": \"NONE\",      \"human_readable_font_type\": \"Arial Regular 10\",      \"rotate\": \"0\",      \"bar_height\": null,      \"text_decoration\": null,      \"text_decoration_script\": null,      \"format\": null,      \"separator\": null,      \"timezone\": null,      \"content_vertical_alignment\": null    },    {      \"start_x\": 1,      \"start_y\": 108,      \"end_x\": 218,      \"end_y\": 210,      \"font_type\": \"Zfull-GB Regular 16\",      \"font_size\": 16.0,      \"content_type\": \"CONTENT_TYPE_TEXT\",      \"content_title\": \"ad\",      \"content_value\": \"全方位干湿精控系统，保鲜15天新鲜如初，三档变温空间，变温空间\",      \"content_color\": \"BLACK\",      \"content_alignment\": \"LEFT\",      \"number_script\": \"NONE\",      \"number_gap\": \"CONSECUTIVE\",      \"font_type_script\": \"Arial\",      \"font_size_script\": 16.0,      \"content_reverse\": \"FALSE\",      \"origin_font_type\": 0,      \"human_readable\": \"NONE\",      \"human_readable_font_type\": \"Arial Regular 10\",      \"rotate\": null,      \"bar_height\": null,      \"text_decoration\": null,      \"text_decoration_script\": null,      \"format\": null,      \"separator\": null,      \"timezone\": null,      \"content_vertical_alignment\": null    },    {      \"start_x\": 227,      \"start_y\": 108,      \"end_x\": 229,      \"end_y\": 214,      \"font_type\": \"Arial\",      \"font_size\": 16.0,      \"content_type\": \"CONTENT_TYPE_LINE\",      \"content_title\": \"NONE\",      \"content_value\": \"NONE\",      \"content_color\": \"BLACK\",      \"content_alignment\": \"LEFT\",      \"number_script\": \"NONE\",      \"number_gap\": \"CONSECUTIVE\",      \"font_type_script\": \"Arial\",      \"font_size_script\": 16.0,      \"content_reverse\": \"FALSE\",      \"origin_font_type\": 0,      \"human_readable\": \"NONE\",      \"human_readable_font_type\": \"Arial Regular 10\",      \"rotate\": \"90\",      \"bar_height\": null,      \"text_decoration\": null,      \"text_decoration_script\": null,      \"format\": null,      \"separator\": null,      \"timezone\": null,      \"content_vertical_alignment\": null    },    {      \"start_x\": 242,      \"start_y\": 108,      \"end_x\": 387,      \"end_y\": 212,      \"font_type\": \"Arial\",      \"font_size\": 16.0,      \"content_type\": \"CONTENT_TYPE_QRCODE\",      \"content_title\": \"qrCode\",      \"content_value\": \"12213213421489318591859183781275921389217521jfhsdijhfksfesfsdfsfe\",      \"content_color\": \"BLACK\",      \"content_alignment\": \"LEFT\",      \"number_script\": \"NONE\",      \"number_gap\": \"CONSECUTIVE\",      \"font_type_script\": \"Arial\",      \"font_size_script\": 16.0,      \"content_reverse\": \"FALSE\",      \"origin_font_type\": 0,      \"human_readable\": \"NONE\",      \"human_readable_font_type\": \"Arial Regular 10\",      \"rotate\": null,      \"bar_height\": null,      \"text_decoration\": null,      \"text_decoration_script\": null,      \"format\": null,      \"separator\": null,      \"timezone\": null,      \"content_vertical_alignment\": null    },    {      \"start_x\": 138,      \"start_y\": 218,      \"end_x\": 331,      \"end_y\": 264,      \"font_type\": \"Zfull-GB Bold 36\",      \"font_size\": 36.0,      \"content_type\": \"CONTENT_TYPE_TEXT\",      \"content_title\": \"tvSalesPrice\",      \"content_value\": \"22999\",      \"content_color\": \"RED\",      \"content_alignment\": \"RIGHT\",      \"number_script\": \"NONE\",      \"number_gap\": \"CONSECUTIVE\",      \"font_type_script\": \"Arial\",      \"font_size_script\": 16.0,      \"content_reverse\": \"FALSE\",      \"origin_font_type\": 0,      \"human_readable\": \"NONE\",      \"human_readable_font_type\": \"Arial Regular 10\",      \"rotate\": null,      \"bar_height\": null,      \"text_decoration\": null,      \"text_decoration_script\": null,      \"format\": null,      \"separator\": null,      \"timezone\": null,      \"content_vertical_alignment\": null    },    {      \"start_x\": 0,      \"start_y\": 215,      \"end_x\": 135,      \"end_y\": 298,      \"font_type\": \"Zfull-GB Bold 18\",      \"font_size\": 18.0,      \"content_type\": \"CONTENT_TYPE_TEXT\",      \"content_title\": \"NONE\",      \"content_value\": \"红五月感恩促销活动\",      \"content_color\": \"RED\",      \"content_alignment\": \"LEFT\",      \"number_script\": \"NONE\",      \"number_gap\": \"CONSECUTIVE\",      \"font_type_script\": \"Arial\",      \"font_size_script\": 16.0,      \"content_reverse\": \"TRUE\",      \"origin_font_type\": 0,      \"human_readable\": \"NONE\",      \"human_readable_font_type\": \"Arial Regular 10\",      \"rotate\": null,      \"bar_height\": null,      \"text_decoration\": null,      \"text_decoration_script\": null,      \"format\": null,      \"separator\": null,      \"timezone\": null,      \"content_vertical_alignment\": null    }  ]}");
  }
}
